package com.diandi.signature.enums.platfrom;

/**
 * Created by jiangquan1900 on 2017/8/31.
 */
public enum PkgMsgType {

    业务报文("业务报文", "1"),
    三方报文("三方报文", "2"),
    ;
    private String type;

    private String value;

    PkgMsgType(String type, String value) {
        this.type = type;
        this.value = value;
    }

    public static PkgMsgType getEmun(String type){
        for ( PkgMsgType pkgMsgType : PkgMsgType.values()) {
            if(pkgMsgType.getType() == type){
                return pkgMsgType;
            }
        }
        return null;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}